export default [
  {
    path: '/login',
    component: '../layouts/UserLayout',
    routes: [
      {
        name: 'login',
        path: '/login',
        component: './user/login',
      },
      {
        component: '404',
      },
    ],
  },
  {
    path: '/',
    component: '../layouts/SecurityLayout',
    routes: [
      {
        path: '/',
        component: '../layouts/BasicLayout',
        authority: ['admin', 'user'],
        routes: [
          // {
          //   path: '/',
          //   name: 'welcome',
          //   icon: 'smile',
          //   component: './Welcome',
          // },
          {
            path: '/dashboard/summary',
            name: 'dashboard',
            icon: 'smile',
            component: './dashboard/index.jsx',
          },
          {
            path: '/dashboard/ed',
            name: 'propExpired',
            icon: 'smile',
            component: './property/propExpired/index.js',
          },
          {
            path: '/dashboard/edw',
            name: 'propCheckTable',
            icon: 'smile',
            component: './property/propCheckTable/index.js',
          },

          {
            path: '/edwards/sys',
            name: 'sys',
            icon: 'setting',
            routes: [
              {
                path: '/edwards/sys/department',
                name: 'department',
                component: './Sys/department/Index.js',
              },
              {
                path: '/edwards/sys/dictionary',
                name: 'dictionary',
                component: './Sys/dictionary/Index.js',
              },
              {
                path: '/edwards/sys/parameters',
                name: 'parameters',
                component: './Sys/parameters/Index.js',
              },
              {
                path: '/edwards/sys/account',
                name: 'account',
                component: './Sys/account/Index.js',
              },
              {
                path: '/edwards/sys/module',
                name: 'module',
                component: './Sys/module/Index.js',
              },
              {
                path: '/edwards/sys/role',
                name: 'role',
                component: './Sys/role/Index.js',
              },
              {
                component: './404',
              },
            ],
          },
          {
            path: '/approve',
            name: 'approve',
            icon: 'edit',
            routes: [
              {
                path: '/approve/list',
                name: 'approveList',
                component: './approve/index.js',
              },
            ],
          },
          {
            path: '/property',
            name: 'property',
            icon: 'table',
            routes: [
              {
                path: '/property/list',
                name: 'propList',
                component: './property/propList/index.js',
              },
              {
                path: '/property/update',
                name: 'propUpdate',
                component: './property/propUpdate/index.js',
              },
              {
                path: '/property/life',
                name: 'propLife',
                component: './property/propLife/index.js',
              },
              {
                path: '/property/repair',
                name: 'propRepair',
                component: './property/propRepair/index.js',
              },
              {
                path: '/property/repairupdate',
                name: 'propRUpdate',
                component: './property/propRUpdate/index.js',
              },
              {
                path: '/property/scrap',
                name: 'propScrap',
                component: './property/propScrap/index.js',
              },
              {
                path: '/property/check',
                name: 'propCheck',
                component: './property/propCheck/index.js',
              },
              {
                path: '/property/checkupdate',
                name: 'propCUpdate',
                component: './property/propCUpdate/index.js',
              },
              {
                path: '/property/scrapupdate',
                name: 'propRUpdate',
                component: './property/propSUpdate/index.js',
              },
              {
                path: '/property/label',
                name: 'propLabel',
                component: './property/propLabel/index.js',
              },
              {
                path: '/property/transfer',
                name: 'propTrans',
                component: './property/propTransfer/index.js',
              },
              {
                component: './404',
              },
            ],
          },
          // {
          //   path: '/edwards/role',
          //   name: 'role',
          //   icon: 'lock',
          //   routes: [
          //     {
          //       path: '/edwards/role/account',
          //       name: 'account',
          //       component: './Sys/account/Index.js',
          //     },
          //     { path: '/edwards/role/module', name: 'module', component: './Sys/module/Index.js' },
          //     { path: '/edwards/role/role', name: 'role', component: './Sys/role/Index.js' },
          //   ],
          // },
          {
            component: './404',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/404',
    component: './404',
  },
  {
    component: './404',
  },
]
